<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>添加菜品</title>
		<script src="<?php echo base_url();  ?>javascripts/lib/jquery-1.7.min.js"></script>
		<style>
			ul li{display: block; width: 500px; height: 25px; font-size: 12px;}
			li span {display:block; float: left; height: 25px;}
			.s1{ width: 100px;text-align: right;}
			.s2{ width: 390px; text-align:left;}
		</style>
		<script>
			$(function(){
				$("#picupload").click(function() {
					
					openWin("<?=base_url()?>sx_test/htmlupload/","upload",300,200);
				});
				function openWin(u,n, w, h) { 
            var l = (screen.width - w) / 2; 
            var t = (screen.height - h) / 2; 
            var s = 'width=' + w + ', height=' + h + ', top=' + t + ', left=' + l; 
            s += ', toolbar=no, scrollbars=no, menubar=no, location=no, resizable=no'; 
            window.open(u, 'oWin', s); 
      			} 
			});
		</script>
	</head>
	<body>
		<form action="<?=base_url()?>sx_article/" method="post">
		<ul>
			<li>
				<span class="s1">KEY</span><span class="s2"><input type="text" value="<?=$key?>" name="mobikey" id="mobikey" readonly="readonly" /><input type="text" value="<?=$sess?>" name="sessionid" id="sessionid" readonly="readonly" /></span>
			</li>
			<li>
				<span class="s1">大图路径：</span><span class="s2"><input type="text" value="" name="pic_path" id="pic_path" readonly="readonly"  /><input type="button" value="上传"  id="picupload" /></span>
			</li>
			<li>
				<span class="s1">菜品名称：</span><span class="s2"><input type="text" value="" name="pic_name" id="pic_name"  /></span>
			</li>
			<li>
				<span class="s1">餐馆：</span><span class="s2"><input type="text" value="" name="restaurant" id="restaurant"  /></span>
			</li>
			<li>
				<span class="s1">餐馆地址：</span><span class="s2"><input type="text" value="" name="pic_addr" id="pic_addr"  /></span>
			</li>
			<li>
				<span class="s1">所在城市：</span><span class="s2"><input type="text" value="" name="city" id="city"  /></span>
			</li>
			<li>
				<span class="s1">菜品介绍：</span><span class="s2"><input type="text" value=""  name="pic_caption" id="pic_caption"  /></span>
			</li>			
			
			<li>
				<span class="s1">X:</span><span class="s2"><input type="text" value="" name="pic_x" id="pic_x"  /></span>
			</li>
			<li>
				<span class="s1">Y:</span><span class="s2"><input type="text" value="" name="pic_y" id="pic_y"  /></span>
			</li>
			<li>
				<span class="s1"></span><span class="s2"><input type="submit" value="submit" name="submit" id="submit"  /><input type="hidden" value="addArticle" name="action" id="action" /></span>
			</li>
		</ul>
		</form>
	</body>
</html>